package com.shuda.common.dto;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 分页DTO：显式提供getter/setter，避免Lombok依赖导致编译问题。
 */
@Schema(description = "分页DTO")
public class PageDTO {

    @Schema(description = "页码", example = "1")
    private Integer pageNum = 1;

    @Schema(description = "每页条数", example = "10")
    private Integer pageSize = 10;

    @Schema(description = "排序字段")
    private String orderBy;

    @Schema(description = "排序方式（asc/desc）")
    private String orderType = "asc";

    /** 获取页码 */
    public Integer getPageNum() { return pageNum; }
    /** 设置页码 */
    public void setPageNum(Integer pageNum) { this.pageNum = pageNum; }

    /** 获取每页条数 */
    public Integer getPageSize() { return pageSize; }
    /** 设置每页条数 */
    public void setPageSize(Integer pageSize) { this.pageSize = pageSize; }

    /** 获取排序字段 */
    public String getOrderBy() { return orderBy; }
    /** 设置排序字段 */
    public void setOrderBy(String orderBy) { this.orderBy = orderBy; }

    /** 获取排序方式 */
    public String getOrderType() { return orderType; }
    /** 设置排序方式 */
    public void setOrderType(String orderType) { this.orderType = orderType; }
}